
#include "video/NameGenerator.h"
#include <sstream>


namespace KEngine
{

ImplementSingleton(NameGenerator);

NameGenerator::NameGenerator()
: mNodeUniqueID(0)
, mMovableObjectUniqueID(0)
{

}

NameGenerator::~NameGenerator()
{

}

std::string NameGenerator::generateNodeName()
{
	std::stringstream ss;
	ss << "__Node_" << mNodeUniqueID++ << "__";
	std::string name = ss.str();

	return name;
}

std::string NameGenerator::generateMovableObjectName()
{
	std::stringstream ss;
	ss << "__MovableObject_" << mMovableObjectUniqueID++ << "__";
	std::string name = ss.str();

	return name;
}

}